package org.mil.gui;

 

import javax.swing.JComponent;
import javax.swing.JFrame;

 
/**
 * 本软件的GUI主窗体  
 * @author HZK
 *
 */
public class MainForm extends JFrame {

	private static final long serialVersionUID = -255L;

	public static final String VER="0.1.0.2";
	public static final String AUTHOR="SinoYellow";
	public static final String LINK="<html><a href=\"http://blog.ddssp.com\">"+VER+"</a></html>";
	
	public static void main(String[] args) {
		  //Schedule a job for the event-dispatching thread:
        //creating and showing this application's GUI.
        javax.swing.SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                createAndShowGUI();
            }
        });
		 
	}

	public MainForm() {
		
		setTitle("MediaInfoLister GUI");		
		setSize(400, 200);	
		setLocation(300,300);
		//setLayout(new BoxLayout(this.getContentPane(), BoxLayout.Y_AXIS));
	
	}

    /**
     * Create the GUI and show it.  For thread safety,
     * this method should be invoked from the
     * event-dispatching thread.
     */
    private static void createAndShowGUI() {
        //Make sure we have nice window decorations.
       // JFrame.setDefaultLookAndFeelDecorated(true);

        //Create and set up the window.
        JFrame frame = new MainForm();
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

        //Create and set up the content pane.
        JComponent newContentPane = new MainPanel();
       // newContentPane.setOpaque(true); //content panes must be opaque
        frame.setContentPane(newContentPane);

        //Display the window.
        frame.pack();
        frame.setVisible(true);
    }
 
}


 